{{include file='header.inc.html'}}
    <div id="inner-wrap" class="clear_both">
        <h2 id="im-here">Categiries</h2>
        <div id="box" class="clear_both">
            <div id="inner-box">
                <div id="content">
                    <form method="post" action="{{url controller='posts' action='cateman'}}">
                        <div class="cmd_options clear_both">
                            <p class="actions">
                                <select name="actions">
                                    <option value="">Bulk Actions</option>
                                    <option value="delete">Delete</option>
                                    <option value="publish">Publish</option>
                                </select>
                                <input type="submit" value="Apply" />
                            </p>
                        </div>
                        <table class="all_w tbox">
                            <tr>
                                <th width="3%" class="tc"><input type="checkbox" id="checkall-t" name="checkall-t" /></th>
                                <th width="22%">Name</th>
                                <th width="40%">Description</th>
                                <th width="25%" class="tc">Slug</th>
                                <th width="10%" class="tc">Posts</th>
                            </tr>
{{foreach from=$list item=cate}}
                            <tr>
                                <td class="tc"><input type="checkbox" id="checkid[]" name="checkid[]" value="{{$cate.cate_id}}" /></td>
                                <td class="post-title"><a href="{{url controller='posts' action='editcategory' cate_id=$cate.cate_id}}">{{$cate.name}}</a><div class="opt"><a href="{{url controller='posts' action='editcategory' cate_id=$cate.cate_id}}">Edit</a> | <a href="">Publish</a> | <a href="{{url controller='posts' action='removecategory' cate_id=$cate.cate_id}}" class="delete">Delete</a></div></td>
                                <td>{{$cate.description}}</td>
                                <td class="tc">{{$cate.slug}}</td>
                                <td class="tc">{{$cate.posts_count}}</td>
                            </tr>
{{/foreach}}
                            <tr>
                                <th class="tc"><input type="checkbox" id="checkall-b" name="checkall-b" /></th>
                                <th>Name</th>
                                <th>Description</th>
                                <th class="tc">Slug</th>
                                <th class="tc">Posts</th>
                            </tr>
                        </table>
                        <div class="cmd_options clear_both">
                            <p class="actions">
                                <select name="actions">
                                    <option value="">Bulk Actions</option>
                                    <option value="delete">Delete</option>
                                    <option value="publish">Publish</option>
                                </select>
                                <input type="submit" value="Apply" />
                            </p>
                        </div>
                    </form>
                </div>
            </div>
            <div id="sidebar">
                <div class="sidebar">
                    <h3>Add Category</h3>
                    <form method="post" action="{{url controller='posts' action='createcategory'}}" class="form clear_after ptop">
                        <label for="name">Name : </label>
                        <input type="text" id="name" name="name" style="width:95%" />
                        <label for="slug">Slug : </label>
                        <input type="text" id="slug" name="slug" style="width:95%" />
                        <label for="description">Keywords : </label>
                        <textarea id="keywords" name="keywords" rows="3" style="width:94.5%" class="radius noscroll"></textarea>
                        <label for="description">Description : </label>
                        <textarea id="description" name="description" rows="4" style="width:94.5%" class="radius noscroll"></textarea>
                        <label for="sort_id">Sort : </label>
                        <input type="text" id="sort_id" name="sort_id" style="width:15%" class="mtop" value="1" />
                        <br />
                        <input type="submit" value="Save" class="mtop" />
                    </form>
                </div>
            </div>
        </div>
    </div>
{{include file='footer.inc.html'}}